<table id="rightTable" style="height:100%" data-options="">
					</table>
					<script>
						function button(value,row,index){
							return "<a href='#' class='button-delete button-danger' onclick='editStatus(this)'>禁用</a> <a href='#' class='button-edit button-default' onclick='editUser()'>编辑</a>";
						}
						function editStatus(obj){
							$(obj).text("启用").attr("class","button-delete button-success");
						}
						$(function() {

							$('#rightTable').datagrid({
								cls: "theme-datagrid",
								title: "系统",
								singleSelect: true,
								rownumbers: true, //显示序号
								pagination: true,
								pageSize: 10,
								url: "right/rightList",
							    method: 'post',
								collapsible: true,
								columns:[[
									  		{field:'ids',title:'ids',width:100,align:'center', hidden:true},
									  		{field:'name',title:'名称',width:180, align:'center'},
									  		{field:'uri',title:'uri',width:250, align:'center'},
									  		{field:'orderid',title:'序号',width:80, align:'center'},
									  		{field:'modulename',title:'所属模块',width:100, align:'center'},
									  		{field:'splitpage',title:'是否分页',width:80, align:'center',
									  			formatter: function(value,row,index){
									  				var splitpage = row.splitpage;
									  				if(splitpage == 1){
									  					return '是';
									  				}else{
									  					return '否';
									  				}
									  			}	
									  		},
									  		{field:'privilegess',title:'是否验证',width:80, align:'center',
									  			formatter: function(value,row,index){
									  				var privilegess = row.privilegess;
									  				if(privilegess == 1){
									  					return '是';
									  				}else{
									  					return '否';
									  				}
									  			}
									  		},
									  		{field:'status',title:'状态',width:100, align:'center',
									  			formatter: function(value,row,index){
									  				var status = row.status;
									  				if(status == 1){
									  					return '正常';
									  				}else{
									  					return '禁用';
									  				}
									  			}
									  		}
// 									  		{field:'operate',title:'操作',width:120, align:'center'}
									      ]],
								onLoadSuccess:function(){
									
								}
							});
						})
					</script>